package com.usian.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.common.Result;
import com.usian.dto.OrderDto;
import com.usian.entity.Orders;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2025-01-15
 */
public interface IOrdersService extends IService<Orders> {

    Result<Orders> getOrderByUserId(Integer userId);

    Result<Orders> findAllBooked(Integer userId);

    List<Orders> findOrderHistory(Integer userId);

    Result addOrders(OrderDto orderDto);

    Orders selectByOrderNo(String carId);

    Result<Orders> findAllzhifu(Integer userId);
}
